home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / a_utils / _archvrs / unix / unzip51 / amiga / makefile.azt < prev    next >
Encoding:
Makefile  |  1992-10-12  |  1.8 KB  |  63 lines

  1. # Makefile for UnZip 5.1+ using Manx Aztec C 5.2b              12 October 1992
  2. #
  3. # May need to change directory names for stat.c and utime.c.
  4.  
  5. # This makefile does not yet have a means of creating a version optimized for
  6. # 32 bit CPUs, nor does the Lattice lmkfile.  Release 4.0 included such a
  7. # version but 4.1 did not.
  8.  
  9. #####################
  10. # MACRO DEFINITIONS #
  11. #####################
  12.  
  13. CC = cc
  14. CFLAGS = -d AMIGA -ps -sabfmnpu -wcr0u
  15. # -ps means short ints, -s... is optimizations, -w... controls type checking
  16. LD = ln
  17. LDFLAGS = +q -o $@
  18. LDFLAGS2 = -lc16
  19. EXE =
  20. O = .o
  21. OBJS = unzip$O crypt$O envargs$O explode$O extract$O file_io$O inflate$O\
  22.        mapname$O match$O misc$O unreduce$O unshrink$O utime$O stat$O
  23.  
  24. IOBS = zipinfo$O envargs$O match$O misc$O stat$O
  25.  
  26. ###############################################
  27. # BASIC COMPILE INSTRUCTIONS AND DEPENDENCIES #
  28. ###############################################
  29.  
  30. .c$O :
  31.     $(CC) -o $@ $(CFLAGS) $*.c
  32.  
  33. unzip$(EXE) :    $(OBJS)
  34.     $(LD) $(LDFLAGS) $(OBJS) $(LDFLAGS2)
  35.  
  36. zipinfo$(EXE) :   $(IOBS)
  37.     $(LD) $(LDFLAGS) $(IOBS) $(LDFLAGS2)
  38.  
  39. crypt$O:        crypt.c unzip.h zip.h crypt.h
  40. envargs$O:      envargs.c unzip.h
  41. explode$O:      explode.c unzip.h
  42. extract$O:      extract.c unzip.h crypt.h
  43. file_io$O:      file_io.c unzip.h crypt.h
  44. inflate$O:      inflate.c unzip.h
  45. mapname$O:      mapname.c unzip.h
  46. match$O:        match.c unzip.h
  47. misc$O:         misc.c unzip.h
  48. unreduce$O:     unreduce.c unzip.h
  49. unshrink$O:     unshrink.c unzip.h
  50. unzip$O:        unzip.c unzip.h crypt.h
  51. utime$O:        amiga/utime.c    # may need to change or remove directory name
  52. stat$O:         amiga/stat.c    # may need to change or remove directory name
  53. zipinfo$O:      unzip.h
  54.  
  55. # my lame make version doesn't want to make stat.o and utime.o from the rule:
  56.  
  57. stat.o : amiga/stat.c
  58.     $(CC) -o $@ $(CFLAGS) $*.c
  59.  
  60. utime.o : amiga/utime.c
  61.     $(CC) -o $@ $(CFLAGS) $*.c
  62.  
  63.